package cn.cqie.attendance.manager.dao;

import cn.cqie.attendance.manager.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author king james
 * @create 2021-07-07-{TIME}
 */
@Mapper
public interface AdminLeavesDao {
    /**
     * 组合模糊查询所有请假记录
     * @param adminLeavesSearch 组合查询条件
     * @return
     */
    List<AdminStudentLeave> queryAllLeavesInfo(@Param("adminLeavesSearch") AdminLeavesSearch adminLeavesSearch);

    /**
     * 根据学生请假id查询学生请假详情
     * @param leaveId 学生id
     * @return
     */
    List<AdminStudentLeave> queryLeavesInfoById(@Param("leaveId")Integer leaveId);

    /**
     * 根据学生请假id查询学请假的附件
     * @param leaveId 学生请假id
     * @return
     */
    List<AdminAttachment> queryAttachmentInfoById(@Param("leaveId")Integer leaveId);

    /**
     * 根据学生请假id查询学生请假的流程管理
     * @param leaveId 学生请假id
     * @return
     */
    List<AdminLeavesDistance> queryLeaveDistanceById(@Param("leaveId")Integer leaveId);





}
